export default {
    addIfEven({
        commit,
        state
    }) {
        if (state.count % 2 == 0) {
            // state.count++
            commit('add');
        }
    },
    decrementIfOdd({
        commit,
        state
    }) {
        if (state.count % 2 == 1) {
            setTimeout(() => {
                commit('decrement');
            }, 1000)
        }
    }
}